gridpack::serial_io::SerialBusIO< _network > Class Template Reference
#include <serial_io.hpp>
List of all members.
Public Member Functions |
| SerialBusIO (int max_str_len, boost::shared_ptr< _network > network) |
| ~SerialBusIO (void) |
void | open (const char *filename) |
boost::shared_ptr< std::ofstream > | getStream () |
void | setStream (boost::shared_ptr< std::ofstream > stream) |
void | close () |
void | write (const char *signal=NULL) |
void | header (const char *str) |
template<class _data_type > |
void | gatherData (std::vector< _data_type > &data_vector, const char *signal=NULL) |
std::vector< std::string > | writeStrings (const char *signal=NULL) |
template<class _network>
class gridpack::serial_io::SerialBusIO< _network >
Constructor & Destructor Documentation
template<class _network >
Simple constructor
- Parameters:
-
| max_str_len | the maximum string length written out by any bus |
| network | the network for which output is desired |
template<class _network >
Member Function Documentation
template<class _network >
Close file and redirect output to standard out
template<class _network >
template<class _data_type >
This is a function that can use the machinery that has been set up in the serialBusIO class to move data to the head node
- Parameters:
-
| vector | of data at the head node (this vector will be empty on all other nodes) character string that can be used to specify which data is being requested |
template<class _network >
template<class _network >
Write single string to standard output. This is used to write headers for a data listing. It is mostly a convenience function so that users do not have to identify the head node
- Parameters:
-
| str | character string containing the header |
template<class _network >
template<class _network >
Set IO stream to point to existing file
- Parameters:
-
template<class _network >
Write output from buses to standard out
- Parameters:
-
| signal | an optional character string used to control contents of output |
template<class _network >
Write output from buses to a vector of strings
- Parameters:
-
| signal | an optional character string used to control contents of output |
- Returns:
- vector of strings containing output strings
The documentation for this class was generated from the following file: